package org.bit.mystore.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component
@TableName("user")
public class User {
    private int uid;
    @TableId("name")
    private String username;
    private int age;
    //  默认值为M
    @TableField("M")
    private String sex;
}
